﻿using Coolzon.UI.Common.RealtimeProxies;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Common.Event.NCL
{
    /// <summary>
    /// 向服务器发送登录的事件
    /// </summary>
    public class LoginBegin : NCLEvent
    {
        public string StartupPath { get; set; }
        public string AppType { get; set; }
        public string AppVersion { get; set; }
        public string OSVersion { get; set; }
        public string DotNetVersion { get; set; }
        public string UserAccount { get; set; }
        public string SolutionSelectionMode { get; set; }
        public string UserPassword { get; set; }

        /// <summary>
        /// 可用的服务器列表
        /// </summary>
        public Endpoint[] Endpoints { get; set; }

        public LoginBegin()
            :base(NCLEventState.Sending)
        {

        }

        //public NCLLoginEvent Clone()
        //{
        //    NCLLoginEvent @event = new NCLLoginEvent();

        //    @event.StartupPath = this.StartupPath;
        //    @event.AppType = this.AppType;
        //    @event.AppVersion = this.AppVersion;
        //    @event.OSVersion = this.OSVersion;
        //    @event.DotNetVersion = this.DotNetVersion;
        //    @event.UserAccount = this.UserAccount;
        //    @event.SolutionSelectionMode = this.SolutionSelectionMode;
        //    @event.UserPassword = this.UserPassword;
        //    @event.Result = this.Result;
        //    return @event;
        //}
    }
}
